package run.controller;

import entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import run.feignClient.DeptClient;

import javax.annotation.Resource;

/**
 * @author zhangxian
 * @program: parent
 * @description: 获取用户信息
 * @date 2022-03-23 10:23:03
 */
@Controller
@RequestMapping("/dept")
public class DeptConsumerController {

    @Resource
    private DeptClient deptClient;

    @RequestMapping(value = "/consumer/dept/get")
    @ResponseBody
    public Dept get(String deptNo) {
        return deptClient.getInfo(deptNo);
    }
}
